package dk.dtu.android.transport;

//import android.app.PendingIntent;
//import android.content.Intent;
import android.telephony.SmsManager;
import android.util.Log;

public class SendSMS {
	
	private static String baseMSG = "Klip ";
	
	public static void SMS(String phoneNo, String zone, String noZones) {
		String message = baseMSG + zone + " " + noZones;
		Log.d("SendSMS", "message: " + message + "\n phone number: " + phoneNo);
		sendSMS(phoneNo, message);
	}
	
	public static void confirmSMS(String phoneNo, String message) {
		Log.d("SendSMS", "message: " + message);
		sendSMS(phoneNo, message);
	}
	
	private static void sendSMS(String phoneNumber, String message) {
		SmsManager sms = SmsManager.getDefault();
		sms.sendTextMessage(phoneNumber, null, message, null, null);
	}
	        

}
